import base from '@/api/base.js';
import http from '@/request/http.js';


const Agreement = {
    listAllAgreementType() {
        return http.post(`${base.context}/system/agreementType/listAll`);
    },
    listAllAgreement(body) {
        return http.post(`${base.context}/agreement/listAll`, body);
    },
    queryAgreementAttribute(body) {
        return http.post(`${base.context}/system/agreementAttribute/queryAgreementAttribute`, body);
    },
    addAgreement(body) {
        return http.post(`${base.context}/agreement/add`, body);
    },
    getAgreement(body) {
        return http.post(`${base.context}/agreement/detail`, body);
    },
    deleteAgreement(body) {
        return http.post(`${base.context}/agreement/delete`, body);
    },

}

export default Agreement;